<?php 
/**
* @orm listener beforeInsert beforeInsert(2)
* @orm listener afterInsert afterInsert(2)
* @orm listener beforeUpdate beforeUpdate(2)
* @orm listener afterUpdate afterUpdate(2)
* @orm listener beforeDelete beforeDelete(2)
* @orm listener afterDelete afterDelete(2)
* @orm listener beforeSave beforeSave(2)
* @orm listener afterSave afterSave(2)
*/
class DomArTestClass_Listeners extends DomArObject {
	
	/**
	* @orm text
	* @orm listener beforeInsert beforeInsertSingle(2)
	* @orm listener afterInsert afterInsertSingle(2)
	* @orm listener beforeUpdate beforeUpdateSingle(2)
	* @orm listener afterUpdate afterUpdateSingle(2)
	* @orm listener beforeDelete beforeDeleteSingle(2)
	* @orm listener afterDelete afterDeleteSingle(2)
	* @orm listener beforeValidate beforeValidate(2)
	* @orm listener beforeSet beforeSet(2)
	* @orm listener afterSet afterSet(2)
	* @orm listener beforeSave beforeSaveSingle(2)
	* @orm listener afterSave afterSaveSingle(2)
	*/
	public $listenerVar;
	
	public $beforeInsert = false;
	public $afterInsert = false;
	public $beforeUpdate = false;
	public $afterUpdate = false;
	public $beforeDelete = false;
	public $afterDelete = false;
	public $beforeSave = false;
	public $afterSave = false;
	
	
	public $beforeInsertSingle = false;
	public $afterInsertSingle = false;
	public $beforeUpdateSingle = false;
	public $afterUpdateSingle = false;
	public $beforeDeleteSingle = false;
	public $afterDeleteSingle = false;
	public $beforeSaveSingle = false;
	public $afterSaveSingle = false;
	
	public $beforeValidate = false;
	public $beforeSet = false;
	public $afterSet = false;
	
	
	public function beforeInsert( $arg ) {$this->beforeInsert = $arg == 2;}
	
	public function afterInsert( $arg ) {$this->afterInsert = $arg == 2;}
	
	public function beforeUpdate( $arg ) {$this->beforeUpdate = $arg == 2;}
	
	public function afterUpdate( $arg  ) {$this->afterUpdate = $arg == 2;}
	
	public function beforeDelete( $arg ) {$this->beforeDelete = $arg == 2;}
	
	public function afterDelete( $arg ) {$this->afterDelete = $arg == 2;}
	
	public function beforeSave( $arg   ) {$this->beforeSave = $arg == 2;}
	
	public function afterSave(  $arg  ) {$this->afterSave = $arg == 2;}
	
	
	
	public function beforeInsertSingle( $arg ) {$this->beforeInsertSingle = $arg == 2;}
	
	public function afterInsertSingle( $arg ) {$this->afterInsertSingle = $arg == 2;}
	
	public function beforeUpdateSingle( $arg ) {$this->beforeUpdateSingle = $arg == 2;}
	
	public function afterUpdateSingle( $arg ) {$this->afterUpdateSingle = $arg == 2;}
	
	public function beforeDeleteSingle( $arg ) {$this->beforeDeleteSingle = $arg == 2;}
	
	public function afterDeleteSingle( $arg ) {$this->afterDeleteSingle = $arg == 2;}
	
	public function beforeSaveSingle( $arg ) {$this->beforeSaveSingle = $arg == 2;}
	
	public function afterSaveSingle( $arg ) {$this->afterSaveSingle = $arg == 2;}

	public function beforeValidate( $value, $arg ) {$this->beforeValidate = $arg == 2 && ($value == 'a' or $value == NULL); return 0;}
	
	public function beforeSet( $value, $arg  ) {$this->beforeSet = ($value == 'a' or $value == NULL) && $arg == 2; return $value; }
	
	public function afterSet( $arg ) {$this->afterSet = $arg == 2;}
	
}

class DomArTestClass_ListenersExt extends DomArTestClass_Listeners {

}


/**
* @orm listener beforeInsert beforeInsertOvr(2)
* @orm listener afterInsert afterInsertOvr(2)
* @orm listener beforeUpdate beforeUpdateOvr(2)
* @orm listener afterUpdate afterUpdateOvr(2)
* @orm listener beforeDelete beforeDeleteOvr(2)
* @orm listener afterDelete afterDeleteOvr(2)
* @orm listener beforeSave beforeSaveOvr(2)
* @orm listener afterSave afterSaveOvr(2)
*/
class DomArTestClass_ListenersOvr extends DomArTestClass_Listeners {
	/**
	* @orm text
	* @orm listener beforeInsert beforeInsertSingleOvr(2)
	* @orm listener afterInsert afterInsertSingleOvr(2)
	* @orm listener beforeUpdate beforeUpdateSingleOvr(2)
	* @orm listener afterUpdate afterUpdateSingleOvr(2)
	* @orm listener beforeDelete beforeDeleteSingleOvr(2)
	* @orm listener afterDelete afterDeleteSingleOvr(2)
	* @orm listener beforeValidate beforeValidateOvr(2)
	* @orm listener beforeSet beforeSetOvr(2)
	* @orm listener afterSet afterSetOvr(2)
	* @orm listener beforeSave beforeSaveSingleOvr(2)
	* @orm listener afterSave afterSaveSingleOvr(2)
	*/
	public $listenerVar;

	
	public $beforeInsertOvr = false;
	public $afterInsertOvr = false;
	public $beforeUpdateOvr = false;
	public $afterUpdateOvr = false;
	public $beforeDeleteOvr = false;
	public $afterDeleteOvr = false;
	public $beforeSaveOvr = false;
	public $afterSaveOvr = false;
	
	
	public $beforeInsertSingleOvr = false;
	public $afterInsertSingleOvr = false;
	public $beforeUpdateSingleOvr = false;
	public $afterUpdateSingleOvr = false;
	public $beforeDeleteSingleOvr = false;
	public $afterDeleteSingleOvr = false;
	public $beforeSaveSingleOvr = false;
	public $afterSaveSingleOvr = false;
	
	public $beforeValidateOvr = false;
	public $beforeSetOvr = false;
	public $afterSetOvr = false;
	
	
	public function beforeInsertOvr( $arg ) {$this->beforeInsertOvr = $arg == 2;}
	
	public function afterInsertOvr( $arg ) {$this->afterInsertOvr = $arg == 2;}
	
	public function beforeUpdateOvr( $arg ) {$this->beforeUpdateOvr = $arg == 2;}
	
	public function afterUpdateOvr( $arg  ) {$this->afterUpdateOvr = $arg == 2;}
	
	public function beforeDeleteOvr( $arg ) {$this->beforeDeleteOvr = $arg == 2;}
	
	public function afterDeleteOvr( $arg ) {$this->afterDeleteOvr = $arg == 2;}
	
	public function beforeSaveOvr( $arg   ) {$this->beforeSaveOvr = $arg == 2;}
	
	public function afterSaveOvr(  $arg  ) {$this->afterSaveOvr = $arg == 2;}
	
	
	
	public function beforeInsertSingleOvr( $arg ) {$this->beforeInsertSingleOvr = $arg == 2;}
	
	public function afterInsertSingleOvr( $arg ) {$this->afterInsertSingleOvr = $arg == 2;}
	
	public function beforeUpdateSingleOvr( $arg ) {$this->beforeUpdateSingleOvr = $arg == 2;}
	
	public function afterUpdateSingleOvr( $arg ) {$this->afterUpdateSingleOvr = $arg == 2;}
	
	public function beforeDeleteSingleOvr( $arg ) {$this->beforeDeleteSingleOvr = $arg == 2;}
	
	public function afterDeleteSingleOvr( $arg ) {$this->afterDeleteSingleOvr = $arg == 2;}
	
	public function beforeSaveSingleOvr( $arg ) {$this->beforeSaveSingleOvr = $arg == 2;}
	
	public function afterSaveSingleOvr( $arg ) {$this->afterSaveSingleOvr = $arg == 2;}


	public function beforeValidateOvr( $value, $arg ) {$this->beforeValidateOvr = $arg == 2 && $value == 'a'; return 0;}
	
	public function beforeSetOvr( $value, $arg  ) {$this->beforeSetOvr = $value == 'a' && $arg == 2 ; return $value; }
	
	public function afterSetOvr( $arg ) {$this->afterSetOvr = $arg == 2;}
	
}
?>